<template>
  <div id="Footer">
    <h1>我是Footer，我要使用Store中的数据</h1>
    <h4>Store中State的count为{{count1}}</h4>
  </div>
</template>

<script>
import {mapState} from "vuex";
export default {
  name: "Footer",
  computed:{
    ...mapState({count1:'count'})
  }
}
</script>

<style scoped>
#Footer{
  margin: 20px auto;
  width: 800px;
  height: 200px;
  background-color: yellow;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
</style>